<div class="container">
  <%= form_tag('/upload',:multipart => true) do %>
      <div class="form-group">
        <label>Name</label>
        <%= text_field_tag "name",nil,class: "form-control" %>
      </div>
      <div class="form-group">
        <label>Icon Path</label>
        <%= text_field_tag "icon_path",nil,class: "form-control" %>
      </div>
      <!--<div class="form-group">-->
        <!--<label>File Path</label>-->
        <!--<%= text_field_tag "file_path",nil,class: "form-control" %>-->
      <!--</div>-->
      <div class="form-group">
        <label>Index Path</label>
        <%= text_field_tag "index_path","index.html",class: "form-control" %>
      </div>
      <div class="form-group">
        <label>Type</label>
        <%= select_tag(:game_type, options_for_select([['其他', 0], ['智益', 1], ['射击', 2], ['赛车', 3]], 1)) %>
      </div>
      <div class="form-group">
        <label>Game Level</label>
        <%= select_tag(:game_level, options_for_select([['垃圾', 0], ['一般', 1],['好玩', 2],['超好玩', 3],['神作', 4]], 1)) %>
      </div>

      <div class="form-group">
        <label>State</label>
        <%= select_tag(:state, options_for_select([['上架', 1], ['下架', 0],['测试', 2]], 1)) %>
      </div>
      <div class="form-group">
        <label>Input File</label>
        <input id="file_zip" name = "file_zip" type="file" class="file" data-show-preview="false">
      </div>
      <%= submit_tag "submit", class: "btn btn-default" %>
  <% end %>
  <%= link_to 'index', "/upload" %>
</div>